package com.sg.controller.pbff;

import com.sg.service.biz.pbff.UnstructuredDataService;
import com.sg.dto.biz.pbff.req.*;
import com.sg.dto.biz.pbff.res.*;
import com.sg.common.ro.OkrResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：
 * @version 1.0
 * @date ：
 */
@Api(value = "UnstructuredData", tags = {"UnstructuredData"})
@RestController
// @RequestMapping("/poms/unstructuredData/")
public class UnstructuredDataController {

    @Autowired
    UnstructuredDataService unstructuredDataService;

    /**
     * B2执行文档关系补偿文档名称（运维接口）
     * gen by moon at 8/6/2024, 7:55:35 PM
     */
    @PostMapping("/oms/platform/unstructuredData/implementUnstructuredRelationshipCompDocName")
    @ApiOperation(value = "B2执行文档关系补偿文档名称（运维接口）", response = OkrResult.class)
    public OkrResult<BffImplementUnstructuredRelationshipCompDocNameRespDto> implementUnstructuredRelationshipCompDocName(@RequestBody(required = false) @Validated BffImplementUnstructuredRelationshipCompDocNameReqDto reqDTO) {
        return OkrResult.success(unstructuredDataService.implementUnstructuredRelationshipCompDocName(reqDTO));
    }
}
